/**
 * Created by ll on 30/11/2017.
 * @param {array} dataSource - 数据原.
 */
import React from 'react'
import {Link} from 'react-router-dom'
import style from './style.less'
import {Icon, Button} from 'antd'

class TableHeaderClient extends React.Component {

  state = {
    columns: this.props.dataSource,
    visible: false,
  }

  render() {
    return (
      <div className={style.listTitle}>
        <div>
          <Icon type="bars" className={style.bars} />
          &ensp;数据列表
        </div>
        <div>
          <Button onClick={() => this.props.assignMent()}>分配</Button>&emsp;
          <Button disabled onClick={() => this.props.freeZing()}>冷冻</Button>&emsp;
          <Button disabled onClick={() => this.props.recoVery()}>恢复</Button>
        </div>
      </div>
    )
  }
}

export default TableHeaderClient
